import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '@/views/Login'
import r1 from '@/views/Register'
import _404 from '@/components/404.vue'

Vue.use(VueRouter)

const routes = [


  {
    path: '/',
    name: 'login',
    component: Login
  },
  {
    path: '/re',
    name: '注册',
    component: r1
  },
  {
    path: '/404',
    name: '404',
    component: _404
  }

]


const router = new VueRouter({
  mode: 'history',//默认是hash，hash就会有#
  routes
});



export default router
